﻿@using BugTracker.Models;
@model BugTracker.Models.IndexViewModel
@{
    ViewBag.Title = "Home Page";
}
<h1>Bug Tracker App</h1>

<div>
    <h3>Bugs</h3>
    @foreach (var item in Model.Buggs.OfType<BugClass>())
    {
        <div>@item.Step</div>
    }
</div>

<div>
    <h3>Tasks</h3>
    @foreach (var item in Model.Buggs.OfType<TaskClass>())
    {
        <div>@item.Description</div>
    }
</div>